<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - mbi.info - /usr/include/c++/4.4.1/stdexcept</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../../../index.html">directory</a> - <a href="index.html">usr/include/c++/4.4.1</a> - stdexcept</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>mbi.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-01-23</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">2</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">0.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">0</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : // Standard exception classes  -*- C++ -*-
<span class="lineNum">       2 </span>                : 
<span class="lineNum">       3 </span>                : // Copyright (C) 2001, 2002, 2005, 2007, 2009 Free Software Foundation, Inc.
<span class="lineNum">       4 </span>                : //
<span class="lineNum">       5 </span>                : // This file is part of the GNU ISO C++ Library.  This library is free
<span class="lineNum">       6 </span>                : // software; you can redistribute it and/or modify it under the
<span class="lineNum">       7 </span>                : // terms of the GNU General Public License as published by the
<span class="lineNum">       8 </span>                : // Free Software Foundation; either version 3, or (at your option)
<span class="lineNum">       9 </span>                : // any later version.
<span class="lineNum">      10 </span>                : 
<span class="lineNum">      11 </span>                : // This library is distributed in the hope that it will be useful,
<span class="lineNum">      12 </span>                : // but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      13 </span>                : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<span class="lineNum">      14 </span>                : // GNU General Public License for more details.
<span class="lineNum">      15 </span>                : 
<span class="lineNum">      16 </span>                : // Under Section 7 of GPL version 3, you are granted additional
<span class="lineNum">      17 </span>                : // permissions described in the GCC Runtime Library Exception, version
<span class="lineNum">      18 </span>                : // 3.1, as published by the Free Software Foundation.
<span class="lineNum">      19 </span>                : 
<span class="lineNum">      20 </span>                : // You should have received a copy of the GNU General Public License and
<span class="lineNum">      21 </span>                : // a copy of the GCC Runtime Library Exception along with this program;
<span class="lineNum">      22 </span>                : // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
<span class="lineNum">      23 </span>                : // &lt;http://www.gnu.org/licenses/&gt;.
<span class="lineNum">      24 </span>                : 
<span class="lineNum">      25 </span>                : /** @file stdexcept
<span class="lineNum">      26 </span>                :  *  This is a Standard C++ Library header.
<span class="lineNum">      27 </span>                :  */
<span class="lineNum">      28 </span>                : 
<span class="lineNum">      29 </span>                : //
<span class="lineNum">      30 </span>                : // ISO C++ 19.1  Exception classes
<span class="lineNum">      31 </span>                : //
<span class="lineNum">      32 </span>                : 
<span class="lineNum">      33 </span>                : #ifndef _GLIBCXX_STDEXCEPT
<span class="lineNum">      34 </span>                : #define _GLIBCXX_STDEXCEPT 1
<span class="lineNum">      35 </span>                : 
<span class="lineNum">      36 </span>                : #pragma GCC system_header
<span class="lineNum">      37 </span>                : 
<span class="lineNum">      38 </span>                : #include &lt;exception&gt;
<span class="lineNum">      39 </span>                : #include &lt;string&gt;
<span class="lineNum">      40 </span>                : 
<span class="lineNum">      41 </span>                : _GLIBCXX_BEGIN_NAMESPACE(std)
<span class="lineNum">      42 </span>                : 
<span class="lineNum">      43 </span>                :   /**
<span class="lineNum">      44 </span>                :    * @addtogroup exceptions
<span class="lineNum">      45 </span>                :    * @{
<span class="lineNum">      46 </span>                :    */
<span class="lineNum">      47 </span>                : 
<span class="lineNum">      48 </span>                :   /** Logic errors represent problems in the internal logic of a program;
<span class="lineNum">      49 </span>                :    *  in theory, these are preventable, and even detectable before the
<span class="lineNum">      50 </span>                :    *  program runs (e.g., violations of class invariants).
<span class="lineNum">      51 </span>                :    *  @brief One of two subclasses of exception.
<span class="lineNum">      52 </span>                :    */
<span class="lineNum">      53 </span>                :   class logic_error : public exception 
<span class="lineNum">      54 </span>                :   {
<span class="lineNum">      55 </span>                :     string _M_msg;
<span class="lineNum">      56 </span>                : 
<span class="lineNum">      57 </span>                :   public:
<span class="lineNum">      58 </span>                :     /** Takes a character string describing the error.  */
<span class="lineNum">      59 </span>                :     explicit 
<span class="lineNum">      60 </span>                :     logic_error(const string&amp; __arg);
<span class="lineNum">      61 </span>                : 
<span class="lineNum">      62 </span>                :     virtual 
<span class="lineNum">      63 </span>                :     ~logic_error() throw();
<span class="lineNum">      64 </span>                : 
<span class="lineNum">      65 </span>                :     /** Returns a C-style character string describing the general cause of
<span class="lineNum">      66 </span>                :      *  the current error (the same string passed to the ctor).  */
<span class="lineNum">      67 </span>                :     virtual const char* 
<span class="lineNum">      68 </span>                :     what() const throw();
<span class="lineNum">      69 </span>                :   };
<span class="lineNum">      70 </span>                : 
<span class="lineNum">      71 </span>                :   /** Thrown by the library, or by you, to report domain errors (domain in
<span class="lineNum">      72 </span>                :    *  the mathematical sense).  */
<span class="lineNum">      73 </span>                :   class domain_error : public logic_error 
<span class="lineNum">      74 </span>                :   {
<span class="lineNum">      75 </span>                :   public:
<span class="lineNum">      76 </span>                :     explicit domain_error(const string&amp; __arg);
<span class="lineNum">      77 </span>                :   };
<span class="lineNum">      78 </span>                : 
<span class="lineNum">      79 </span>                :   /** Thrown to report invalid arguments to functions.  */
<span class="lineNum">      80 </span>                :   class invalid_argument : public logic_error 
<span class="lineNum">      81 </span><span class="lineNoCov">              0 :   {</span>
<span class="lineNum">      82 </span>                :   public:
<span class="lineNum">      83 </span>                :     explicit invalid_argument(const string&amp; __arg);
<span class="lineNum">      84 </span>                :   };
<span class="lineNum">      85 </span>                : 
<span class="lineNum">      86 </span>                :   /** Thrown when an object is constructed that would exceed its maximum
<span class="lineNum">      87 </span>                :    *  permitted size (e.g., a basic_string instance).  */
<span class="lineNum">      88 </span>                :   class length_error : public logic_error 
<span class="lineNum">      89 </span>                :   {
<span class="lineNum">      90 </span>                :   public:
<span class="lineNum">      91 </span>                :     explicit length_error(const string&amp; __arg);
<span class="lineNum">      92 </span>                :   };
<span class="lineNum">      93 </span>                : 
<span class="lineNum">      94 </span>                :   /** This represents an argument whose value is not within the expected
<span class="lineNum">      95 </span>                :    *  range (e.g., boundary checks in basic_string).  */
<span class="lineNum">      96 </span>                :   class out_of_range : public logic_error 
<span class="lineNum">      97 </span><span class="lineNoCov">              0 :   {</span>
<span class="lineNum">      98 </span>                :   public:
<span class="lineNum">      99 </span>                :     explicit out_of_range(const string&amp; __arg);
<span class="lineNum">     100 </span>                :   };
<span class="lineNum">     101 </span>                : 
<span class="lineNum">     102 </span>                :   /** Runtime errors represent problems outside the scope of a program;
<span class="lineNum">     103 </span>                :    *  they cannot be easily predicted and can generally only be caught as
<span class="lineNum">     104 </span>                :    *  the program executes.
<span class="lineNum">     105 </span>                :    *  @brief One of two subclasses of exception.
<span class="lineNum">     106 </span>                :    */
<span class="lineNum">     107 </span>                :   class runtime_error : public exception 
<span class="lineNum">     108 </span>                :   {
<span class="lineNum">     109 </span>                :     string _M_msg;
<span class="lineNum">     110 </span>                : 
<span class="lineNum">     111 </span>                :   public:
<span class="lineNum">     112 </span>                :     /** Takes a character string describing the error.  */
<span class="lineNum">     113 </span>                :     explicit 
<span class="lineNum">     114 </span>                :     runtime_error(const string&amp; __arg);
<span class="lineNum">     115 </span>                : 
<span class="lineNum">     116 </span>                :     virtual 
<span class="lineNum">     117 </span>                :     ~runtime_error() throw();
<span class="lineNum">     118 </span>                : 
<span class="lineNum">     119 </span>                :     /** Returns a C-style character string describing the general cause of
<span class="lineNum">     120 </span>                :      *  the current error (the same string passed to the ctor).  */
<span class="lineNum">     121 </span>                :     virtual const char* 
<span class="lineNum">     122 </span>                :     what() const throw();
<span class="lineNum">     123 </span>                :   };
<span class="lineNum">     124 </span>                : 
<span class="lineNum">     125 </span>                :   /** Thrown to indicate range errors in internal computations.  */
<span class="lineNum">     126 </span>                :   class range_error : public runtime_error 
<span class="lineNum">     127 </span>                :   {
<span class="lineNum">     128 </span>                :   public:
<span class="lineNum">     129 </span>                :     explicit range_error(const string&amp; __arg);
<span class="lineNum">     130 </span>                :   };
<span class="lineNum">     131 </span>                : 
<span class="lineNum">     132 </span>                :   /** Thrown to indicate arithmetic overflow.  */
<span class="lineNum">     133 </span>                :   class overflow_error : public runtime_error 
<span class="lineNum">     134 </span>                :   {
<span class="lineNum">     135 </span>                :   public:
<span class="lineNum">     136 </span>                :     explicit overflow_error(const string&amp; __arg);
<span class="lineNum">     137 </span>                :   };
<span class="lineNum">     138 </span>                : 
<span class="lineNum">     139 </span>                :   /** Thrown to indicate arithmetic underflow.  */
<span class="lineNum">     140 </span>                :   class underflow_error : public runtime_error 
<span class="lineNum">     141 </span>                :   {
<span class="lineNum">     142 </span>                :   public:
<span class="lineNum">     143 </span>                :     explicit underflow_error(const string&amp; __arg);
<span class="lineNum">     144 </span>                :   };
<span class="lineNum">     145 </span>                : 
<span class="lineNum">     146 </span>                :   // @} group exceptions
<span class="lineNum">     147 </span>                : 
<span class="lineNum">     148 </span>                : _GLIBCXX_END_NAMESPACE
<span class="lineNum">     149 </span>                : 
<span class="lineNum">     150 </span>                : #endif /* _GLIBCXX_STDEXCEPT */
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
